package com.df.bpm.mapper; 

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.df.bpm.entity.RequirementFM;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface RequirementFMMapper extends BaseMapper<RequirementFM> {

    @Select("SELECT\n" +
            "\t* \n" +
            "FROM\n" +
            "\t[bpm].[requirementFM] \n" +
            "WHERE\n" +
            "\trequirementId = ${requirementId} \n" +
            "\tAND failModeId = ${failModeId} ")
    List<RequirementFM> selectO(Integer requirementId, Integer failModeId);

    @Select("SELECT\n" +
            "\t* \n" +
            "FROM\n" +
            "\t[bpm].[requirementFM] \n" +
            "WHERE\n" +
            "\trequirementId = ${requirementId} ")
    List<RequirementFM> selectListByRequirementId(Integer requirementId);
}